package cn.wen.java.sql.ds;

import cn.wen.java.sql.TypesMap;

/**
 * Title：数据列的信息实体。
 * <p>
 * Description：提供列信息描述。
 * <p>
 * Copyright：Copyright (c) 2010-2012
 * 
 * @author <a href="mailto:ct_wen@qq.com">ctwen</a>, 温承瑭
 * @version Revision：1.0 Date：2011/9/7 Description：初完成。
 *          <p>
 */
public class InfoColumn {

    private String name;

    private String label;

    private int type;

    private String typeName;

    private String tableName;

    private String schemaName;

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getLabel() {
	return label;
    }

    public void setLabel(String label) {
	this.label = label;
    }

    /**
     * @see cn.wen.java.sql.TypesMap
     */
    public int getType() {
	return type;
    }

    public void setType(int type) {
	this.type = type;
    }

    /**
     * 获取对应JAVA数据类型的Class SimpleName。
     */
    public String getTypeNameOfJava() {
	return TypesMap.getJavaTypeSimpleNameBySQLType(type);
    }

    public String getTypeName() {
	return typeName;
    }

    public void setTypeName(String typeName) {
	this.typeName = typeName;
    }

    public String getTableName() {
	return tableName;
    }

    public void setTableName(String tableName) {
	this.tableName = tableName;
    }

    public String getSchemaName() {
	return schemaName;
    }

    public void setSchemaName(String schemaName) {
	this.schemaName = schemaName;
    }

}
